package com.linkpow.smartelevator.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * @ClassName ReqUserDto
 * @Description 用户信息
 * @Author 王丹
 * @Date 2019/11/25 17:03
 * @Version 1.0
 */
@Data
@ApiModel(value = "用户信息")
public class ReqUserDto {

    @ApiModelProperty(value = "用户ID")
    private Integer id;

    @ApiModelProperty(value = "账号")
    @NotEmpty(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空")
    /** 姓名 */
    private String name;

}
